﻿using System;

namespace FBGraph
{
    /// <summary>A representation of known errors that are returned from the Graph API.</summary>
    public enum FBGraphApiErrorType : int
    {
        /// <summary>An error returned from the Graph API that was not recognized by FBGraph.NET.</summary>
        Unknown = 0,

        /// <summary>The access token used for the query was expired or otherwise invalid.</summary>
        [FBGraphApiError("QueryParseException: An active access token must be used to query information about the current user.")]
        InvalidTokenError = 2000,

        /// <summary>The access token used for the query was not valid.</summary>
        [FBGraphApiError("OAuthException: Error processing access token.")]
        TokenProcessingError = 2001,

        /// <summary>The Graph API does not support deleting this type of object.</summary>
        [FBGraphApiError("GraphMethodException: Unsupported delete request.")]
        UnsupportedDeleteRequest = 3000
    }
}